package me.zhengjie.modules.workorder.service;

import me.zhengjie.modules.workorder.domain.TCustomerSuggest;
import me.zhengjie.modules.workorder.service.dto.TCustomerSuggestDTO;
import me.zhengjie.modules.workorder.service.dto.TCustomerSuggestQueryCriteria;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Pageable;

/**
* @author zcw
* @date 2019-11-10
*/
public interface TCustomerSuggestService {

    /**
    * queryAll 分页
    * @param criteria
    * @param pageable
    * @return
    */
    Object queryAll(TCustomerSuggestQueryCriteria criteria, Pageable pageable);

    /**
    * queryAll 不分页
    * @param criteria
    * @return
    */
    public Object queryAll(TCustomerSuggestQueryCriteria criteria);

    /**
     * findById
     * @param id
     * @return
     */
    TCustomerSuggestDTO findById(Integer id);

    /**
     * create
     * @param resources
     * @return
     */
    TCustomerSuggestDTO create(TCustomerSuggest resources);

    /**
     * update
     * @param resources
     */
    void update(TCustomerSuggest resources);

    void evaluate(TCustomerSuggest resources);
    void batchEvaluate(TCustomerSuggest resources);

    /**
     * delete
     * @param id
     */
    //@CacheEvict(allEntries = true)
    void delete(Integer id);
}